import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import store from "@/store";
import ElementPlus from "element-plus";
import directives from "@/directive"

import "element-plus/dist/index.css";
import "@/assets/style/common.css";

var app = createApp(App);
// 全局注册路由实例
app.use(router).use(store).use(ElementPlus);
// 安装自定义指令
for (const key in directives) {
    // console.log(key);
    app.directive(key, directives[key]);
}
app.mount("#app");
